package cn.li.security.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
//@PreAuthorize("hasRole('user')")
public class UserController {

    @GetMapping("")
    public String index(){
        return "这是用户的界面";
    }
}